<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/24
 * Time: 17:54
 */

namespace backend\components;


use yii\base\Component;

class MyComponent extends Component
{
    const EVENT_HELLO = "hello";


    public function bar(){
        $this->trigger(self::EVENT_HELLO);
    }
}